package com.compass.ui.client;

import com.extjs.gxt.ui.client.Style.ButtonScale;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.EventType;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.google.gwt.user.client.ui.FlexTable;


public class	SystemBar extends FlexTable
{
	Button reportButton;
	
	public		SystemBar()
	{
		super();
		Button screenButton = new Button("Capture ecran");
		reportButton = new Button("Création rapport");
		
		screenButton.setScale(ButtonScale.LARGE);
		reportButton.setScale(ButtonScale.LARGE);
		
		setWidget(0, 0, screenButton);
		setWidget(0, 1, reportButton);
	}
	
	public void setReportListener(EventType eventType, Listener<? extends BaseEvent> listener)
	{
		reportButton.addListener(eventType, listener);
	}
}